<script setup lang="ts">
import { useUserStore } from '@/stores/modules/userStore';
import { getTime } from '@/utils/time';

const userStore=useUserStore()
</script>

<template>
    <el-card>
        <div class="box">
                <img :src="userStore.avatar" alt="">
            <div class="center">
                <h2 class="title">{{getTime()}}好呀{{userStore.username}}</h2>
                <span class="text">硅谷甄选运营平台</span>
            </div>
        </div>
    </el-card>
    <div class="bottom">
    <svg-icon name="welcome" width="600px" height="300px"></svg-icon>
  </div>
</template>

<style scoped lang="scss">
.box{
    display: flex;
    align-items: center;
    width: 100vw;
    height:100px ;
        img{
            width: 100px;
            height: 100px;
            border-radius: 50%;
        }
    .center{
        margin-left: 20px;
        .title{
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 30px;
        }
        .text{
            color: #87cfec;
            font-style: italic;
        }
    }
}
.bottom{
    margin-top: 10px;
    display: flex;
    justify-content: center;
}
</style>